package com.lkm.app_ui.m.Imple.hsj522;

import com.lkm.frame.entity.ResponEntityAbs;




public class InnerResponEntity<Data> extends ResponEntityAbs<Data> {






    @Override
    public boolean isSuccess() {
        return getCode()==1;
    }

    @Override
    public InnerResponEntity<Data> success(Data data, String msg) {
        setData(data);
        setMsg(msg);
        setCode(1);

        return this;
    }

    @Override
    public boolean isNotSrcData() {
        return false;
    }


    public InnerResponEntity<Data> fail(Data data, String msg) {
        setData(data);
        setMsg(msg);
        setCode(-1);

        return this;
    }

}
